package com.lightdz.tshirtdz.model.entity;

import java.sql.Timestamp;
import java.util.Objects;

/**
 * @ Description：${description}
 * @ Author     ：zbl
 * @ Date       ：Created in 10:05 10/08/2018
 * @ Modified By：
 */
public class ProductEntity {
    private long pid;
    private String pName;
    private double pPrice;
    private String pBannerPicUrl;
    private String pType;
    private int status;
    private String pDesc;
    private Timestamp createTime;
    private String creater;
    private Timestamp updateTime;
    private String updater;
    private String pScrollPicUrl;
    private String pDescPicUrl;
    private String pSizes;
    private String pColors;

    public String getpBannerPicUrl() {
        return pBannerPicUrl;
    }

    public void setpBannerPicUrl(String pBannerPicUrl) {
        this.pBannerPicUrl = pBannerPicUrl;
    }

    public String getpSizes() {
        return pSizes;
    }

    public void setpSizes(String pSizes) {
        this.pSizes = pSizes;
    }

    public String getpColors() {
        return pColors;
    }

    public void setpColors(String pColors) {
        this.pColors = pColors;
    }

    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public double getpPrice() {
        return pPrice;
    }

    public void setpPrice(double pPrice) {
        this.pPrice = pPrice;
    }



    public String getpType() {
        return pType;
    }

    public void setpType(String pType) {
        this.pType = pType;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getpDesc() {
        return pDesc;
    }

    public void setpDesc(String pDesc) {
        this.pDesc = pDesc;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public String getpScrollPicUrl() {
        return pScrollPicUrl;
    }

    public void setpScrollPicUrl(String pScrollPicUrl) {
        this.pScrollPicUrl = pScrollPicUrl;
    }

    public String getpDescPicUrl() {
        return pDescPicUrl;
    }

    public void setpDescPicUrl(String pDescPicUrl) {
        this.pDescPicUrl = pDescPicUrl;
    }



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ProductEntity that = (ProductEntity) o;
        return pid == that.pid &&
                Double.compare(that.pPrice, pPrice) == 0 &&
                pType == that.pType &&
                status == that.status &&
                Objects.equals(pName, that.pName) &&
                Objects.equals(pBannerPicUrl, that.pBannerPicUrl) &&
                Objects.equals(pDesc, that.pDesc) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(creater, that.creater) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(updater, that.updater) &&
                Objects.equals(pScrollPicUrl, that.pScrollPicUrl) &&
                Objects.equals(pDescPicUrl, that.pDescPicUrl) &&
                Objects.equals(pSizes, that.pSizes) &&
                Objects.equals(pColors, that.pColors);
    }

    @Override
    public int hashCode() {

        return Objects.hash(pid, pName, pPrice, pBannerPicUrl, pType, status, pDesc, createTime, creater, updateTime, updater, pScrollPicUrl, pDescPicUrl, pSizes, pColors);
    }
}
